package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.PowerBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface IPowerMapper extends BaseMapper<PowerBean> {
    public Set<PowerBean> findByRoleId(@Param("roleId") Integer roleId) ;

    public Set<PowerBean> findByRole(@Param("roleId") Integer[] roleId) ;

    public Set<PowerBean> findByAll(Integer userId) ;

}
